import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/film/list',
    method: 'get',
    params: query
  })
}

export function searchFetchList(query) {
  return request({
    url: '/film/search',
    method: 'get',
    params: query
  })
}

export function update(query) {
  return request({
    url: '/film/edit',
    method: 'post',
    data: query
  })
}

export function deleteById(query) {
  return request({
    url: '/film/delete',
    method: 'post',
    params: query
  })
}

export function getById(query) {
  return request({
    url: '/film/get',
    method: 'get',
    params: query
  })
}

export function add(query) {
  return request({
    url: '/film/add',
    method: 'post',
    params: query
  })
}
